package zhtt04.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import zhtt04.entity.User04;

import javax.transaction.Transactional;
/**
 * Created by zhtt on 2016/10/30.
 */
@Transactional
public interface User04Dao extends JpaRepository<User04, Integer> {

  @Query("from User04 u where u.name=:name")
  User04 findUser(@Param("name") String name);
} 